package com.cskaoyan.util.ad;

/**
 * @Name : TopicController.java
 * @Time : 2021/8/12 19:36
 * @Author : creamycandy
 * @Software : IntelliJ IDEA
 */
public class RandomUtils {

    public static String createSmallStrOrNumberRadom() {
        String str = "";

        for (int i = 0; i < 8; i++) {
            int intVal = (int) (Math.random() * 26 + 65);
            if (intVal % 2 == 0) {
                str += (char) intVal;
            } else {
                str += (int) (Math.random() * 10);
            }

        }

        return str;

    }
}
